package com.ethink.mdm.common.mapper;

import com.ethink.mdm.api.info.LegalCurrencyExchangeRateInfo;
import com.ethink.mdm.api.request.LegalCurrencyExchangeRateGetRequest;
import com.ethink.mdm.api.request.LegalCurrencyExchangeRateListByPubDatesRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * 法币汇率表 Mapper接口
 *
 * @Author: lzy
 * @Date: Created in 2022/12/8 14:12
 * ModifiedBy:
 * Version:
 */
@Mapper
public interface LegalCurrencyExchangeRateMapper {

    /**
     * 获取详情
     *
     * @param request
     * @return
     */
    LegalCurrencyExchangeRateInfo getLegalCurrencyExchangeRateByPubDate(@Param("request") LegalCurrencyExchangeRateGetRequest request);

    /**
     * 根据目标币种编码获取列表
     *
     * @param aimCurrencyCode
     * @return
     */
    List<LegalCurrencyExchangeRateInfo> listLegalCurrencyExchangeRateByAimCurrencyCode(@Param("aimCurrencyCode") String aimCurrencyCode);

    /**
     *
     *
     * @param request
     * @return
     */
    List<LegalCurrencyExchangeRateInfo> listLegalCurrencyExchangeRateByPubDates(@Param("request") LegalCurrencyExchangeRateListByPubDatesRequest request);

}
